package com.wmx.jdbc_template_app.easypoi;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 部门信息实体对象
 *
 * @author wangMaoXiong
 * @version 1.0
 * @date 2022/4/27 20:12
 */
@Data
public class DeptExportVO implements Serializable {

    private Integer deptno;

    @Excel(name = "部门名称", width = 20)
    private String dname;

    @Excel(name = "部门位置", width = 30)
    private String loc;

    /**
     * 一对多导出
     */
    @ExcelCollection(name = "员工信息")
    private List<EmpExportVO> empExportVOList;
}
